function ExportExcel(config) {
	var t = this;

	// 提交数据
	this.submitForm = function() {

		var winObj =window.open("OrderController/export.action");
		var loop = setInterval(function() {     
	 	    if(winObj.closed) {    
	 	       clearInterval(loop);     
	 	       parent.layer.closeAll('iframe');
	 	    }    
	 	}, 1);
		
			
	}

	
	//取消
	this.closeLayer = function() {
		parent.layer.closeAll('iframe');
	};

	this.buttonBind = function() {
		$("#submitForm").click(function() {
					t.submitForm();
				});
	};

	// 初始化
	this.init = function() {
		t.buttonBind();
	}
}